/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package website;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Lucas
 */
public class Conexão {
    public static Connection getConnection(String user, String pass) throws Exception {
        Class.forName("oracle.jdbc.OracleDriver");
        String url = "jdbc:oracle:thin:@localhost:1521:XE";
        return DriverManager.getConnection(url, user, pass);
    }
}